package com.pactera.madp.cp.api.dto.contactfield;


import com.pactera.madp.common.core.exception.CheckedException;
import com.pactera.madp.cp.api.ex.ParamException;
import com.pactera.madp.cp.common.em.RespErrCodeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotNull;

/**
 * @author zhaojinjian
 * @ClassName AddContactFieldModel.java
 * @Description 高级属性 - 添加
 * @createTime 2020/12/16 11:28
 */
@ApiModel(value = "高级属性参数")
@Data
public class ContactFieldDto {

    @ApiModelProperty(value = "属性id")
    private Integer id;

    @ApiModelProperty(value = "级别")
    @NotNull(message = "属性级别不能为空")
    private String label;

    @ApiModelProperty(value = "字段类型 input-type 0text 1radio 2 checkbox 3select 4file 5date 6dateTime 7number 8rate")
    @NotNull(message = "属性类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "字段可选值")
    private String options;

    @ApiModelProperty(value = "排序")
    private Integer order;

    @ApiModelProperty(value = "状态 2--全部  1--开启  0--关闭")
    private Integer status;

}
